package com.xinsoft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinsoft.entity.dto.ScmSalePageParam;
import com.xinsoft.entity.po.ScmSale;
import com.xinsoft.entity.vo.ScmSaleListVo;
import com.xinsoft.entity.vo.ScmSaleVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ZYM
 * @description 针对表【scm_sale(销售订单)】的数据库操作Mapper
 * @createDate 2023-07-04 14:59:06
 * @Entity com.xinsoft.entity.po.ScmSale
 */
public interface ScmSaleMapper extends BaseMapper<ScmSale> {

    ScmSaleVo getSaleById(Integer id);

    IPage<ScmSaleListVo> findPageListByParam(Page<?> page,@Param("param") ScmSalePageParam param);
    List<ScmSaleListVo> findPageListByParam(@Param("param") ScmSalePageParam param);
}




